<%--
  Created by IntelliJ IDEA.
  User: sunguangzhu
  Date: 13-11-21
  Time: 下午1:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>easy</title>
    <%@include file="header.jsp"%>
    <jsp:include page="taglib.jsp"></jsp:include>
</head>
<body class="easyui-layout">
<div data-options="region:'north',border:false,split:true" style="height:60px;background:#F4F4F4;padding:10px">
    <div style="float: right;">
        <span><a href="/j_spring_security_logout">注销</a></span>
    </div>
</div>
<div data-options="region:'west',split:true,title:'West'" style="width:200px;padding:10px;">
    <div style="margin-top:10px;">
        <ul id="sysmenu_tree"  url="${ctx}/perResource/sysMenuTree.do" class="defalut_tree"></ul>
    </div>
</div>
<div data-options="region:'south',border:false" style="height:50px;background:#F4F4F4;padding:10px;">south region</div>
<div data-options="region:'center',title:'Center'">
    <div class="easyui-panel" data-options="fit:true">
        <iframe width="100%" scrolling="auto" height="99%" frameborder="false" allowtransparency="true"
                style="border: medium none;" src="" name="main" id="main"></iframe>
    </div>
</div>
<script type="text/javascript">
    var sysmenu_tree = $('#sysmenu_tree');
    $(function () {
        $('#menu_tree').tree('expandAll');
        sysmenu_tree.initTree({
            onClick: function (node) {
                var url = node.attributes.url;
                if(url!=''){
                  if(url=='blank'){
                      $('#main').attr('src','');
                  }else{
                      $('#main').attr('src','${ctx}/'+url);
                  }
                }
            }
        });
    })
</script>
</body>
</html>